package com.yunxin.core.domain.model.order;

import java.util.List;

/**
 * @author zero°
 * @since 2023-07-12
 */
public interface OrderUserApplyRepository {


    /**
     * 保存
     * @param orderUserApply orderUserApply
     * @return boolean
     */
    boolean saveOrderUserApply(OrderUserApply orderUserApply);

    /**
     * 更新
     * @param orderUserApply orderUserApply
     * @return boolean
     */
    boolean updateOrderUserApply(OrderUserApply orderUserApply);

    /**
     * 根基申请订单号查询数据
     * @param applyOrderNo applyOrderNo
     * @return OrderUserApply
     */
    OrderUserApply getOrderUserApplyByApplyOrderNo(String applyOrderNo);

    /**
     * 根据手机号查询订单详情
     * @param phone
     * @return
     */
    OrderUserApply getIdByUserPhone(String phone);


    OrderUserApply selectOrderUserApplyAllocationByUserCode(String userCode,Long productId);

    List<OrderUserApply> selectOrderUserApplyAllocationByUserCode1(String userCode,Long productId);
}
